<?php

namespace app\admin\model;

/**
 * SensitiveDataLog 模型
 * @controllerUrl 'securitySensitiveDataLog'
 */
class SensitiveDataLog extends BaseModel
{
    protected $name = 'security_sensitive_data_log';

    /**
     * @var int 自动写入时间戳
     */
    protected $autoWriteTimestamp = 'int';

    /**
     * @var int 自动写入创建时间
     */
    protected $createTime = 'create_time';
    /**
     * @var int 自动写入更新时间
     */
    protected $updateTime = false;

    public function sensitive()
    {
        return $this->belongsTo(SensitiveData::class, 'sensitive_id');
    }

    public function admin()
    {
        return $this->belongsTo(Admin::class, 'admin_id');
    }
}
